package com.wes.wtools;


import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.provider.Settings;

public class adbControl {

    // 方法用于检查 WiFi ADB 功能的状态
    // 打开 WiFi ADB 设置页面
    public static void openWiFiADBSettings(Context context) {
        Intent intent = new Intent();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            intent.setAction(Settings.ACTION_WIRELESS_SETTINGS);
        } else {
            intent.setAction(Settings.ACTION_WIFI_IP_SETTINGS);
        }
        context.startActivity(intent);
    }
}
